/*  1:   */ package org.jetbrains.jps.model.java.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.ex.JpsElementBase;
import org.jetbrains.jps.model.java.JpsJavaDependencyExtension;
import org.jetbrains.jps.model.java.JpsJavaDependencyScope;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ public class JpsJavaDependencyExtensionImpl
/*  9:   */   extends JpsElementBase<JpsJavaDependencyExtensionImpl>
/* 10:   */   implements JpsJavaDependencyExtension
/* 11:   */ {
/* 12:   */   private boolean a;
/* 13:   */   private JpsJavaDependencyScope b;
/* 14:   */   
/* 15:   */   public JpsJavaDependencyExtensionImpl(boolean paramBoolean, JpsJavaDependencyScope paramJpsJavaDependencyScope)
/* 16:   */   {
/* 17:32 */     this.a = paramBoolean;
/* 18:33 */     this.b = paramJpsJavaDependencyScope;
/* 19:   */   }
/* 20:   */   
/* 21:   */   public JpsJavaDependencyExtensionImpl(JpsJavaDependencyExtensionImpl paramJpsJavaDependencyExtensionImpl)
/* 22:   */   {
/* 23:37 */     this.a = paramJpsJavaDependencyExtensionImpl.a;
/* 24:38 */     this.b = paramJpsJavaDependencyExtensionImpl.b;
/* 25:   */   }
/* 26:   */   
/* 27:   */   public boolean isExported()
/* 28:   */   {
/* 29:43 */     return this.a;
/* 30:   */   }
/* 31:   */   
/* 32:   */   public void setExported(boolean paramBoolean)
/* 33:   */   {
/* 34:48 */     if (this.a != paramBoolean)
/* 35:   */     {
/* 36:49 */       this.a = paramBoolean;
/* 37:50 */       fireElementChanged();
/* 38:   */     }
/* 39:   */   }
/* 40:   */   
/* 41:   */   @NotNull
/* 42:   */   public JpsJavaDependencyScope getScope()
/* 43:   */   {
/* 44:57 */     JpsJavaDependencyScope tmp4_1 = this.b;
/* 45:57 */     if (tmp4_1 == null) {
/* 46:57 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/java/impl/JpsJavaDependencyExtensionImpl", "getScope" }));
/* 47:   */     }
/* 48:57 */     return tmp4_1;
/* 49:   */   }
/* 50:   */   
/* 51:   */   public void setScope(@NotNull JpsJavaDependencyScope paramJpsJavaDependencyScope)
/* 52:   */   {
/* 53:62 */     if (paramJpsJavaDependencyScope == null) {
/* 54:62 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/java/impl/JpsJavaDependencyExtensionImpl", "setScope" }));
/* 55:   */     }
/* 56:62 */     if (!paramJpsJavaDependencyScope.equals(this.b))
/* 57:   */     {
/* 58:63 */       this.b = paramJpsJavaDependencyScope;
/* 59:64 */       fireElementChanged();
/* 60:   */     }
/* 61:   */   }
/* 62:   */   
/* 63:   */   @NotNull
/* 64:   */   public JpsJavaDependencyExtensionImpl createCopy()
/* 65:   */   {
/* 66:71 */     void tmp8_5 = new JpsJavaDependencyExtensionImpl(this);
/* 67:71 */     if (tmp8_5 == null) {
/* 68:71 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/java/impl/JpsJavaDependencyExtensionImpl", "createCopy" }));
/* 69:   */     }
/* 70:71 */     return tmp8_5;
/* 71:   */   }
/* 72:   */   
/* 73:   */   public void applyChanges(@NotNull JpsJavaDependencyExtensionImpl paramJpsJavaDependencyExtensionImpl)
/* 74:   */   {
/* 75:76 */     if (paramJpsJavaDependencyExtensionImpl == null) {
/* 76:76 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/java/impl/JpsJavaDependencyExtensionImpl", "applyChanges" }));
/* 77:   */     }
/* 78:76 */     setExported(paramJpsJavaDependencyExtensionImpl.a);
/* 79:77 */     setScope(paramJpsJavaDependencyExtensionImpl.b);
/* 80:   */   }
/* 81:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.java.impl.JpsJavaDependencyExtensionImpl

 * JD-Core Version:    0.7.0.1

 */